/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * This class is used by
 * {@link com.crossriver.crgis.database.service.http.Held_PlotsServiceSoap}.
 * </p>
 *
 * @author    Wole Adetiba
 * @see       com.crossriver.crgis.database.service.http.Held_PlotsServiceSoap
 * @generated
 */
public class Held_PlotsSoap implements Serializable {
	public static Held_PlotsSoap toSoapModel(Held_Plots model) {
		Held_PlotsSoap soapModel = new Held_PlotsSoap();

		soapModel.setHeld_id(model.getHeld_id());
		soapModel.setUserId(model.getUserId());
		soapModel.setApplicationId(model.getApplicationId());
		soapModel.setLocation(model.getLocation());
		soapModel.setArea(model.getArea());
		soapModel.setDeveloped(model.getDeveloped());
		soapModel.setAcquisitionMode(model.getAcquisitionMode());
		soapModel.setRegParticulars(model.getRegParticulars());

		return soapModel;
	}

	public static Held_PlotsSoap[] toSoapModels(Held_Plots[] models) {
		Held_PlotsSoap[] soapModels = new Held_PlotsSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static Held_PlotsSoap[][] toSoapModels(Held_Plots[][] models) {
		Held_PlotsSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new Held_PlotsSoap[models.length][models[0].length];
		}
		else {
			soapModels = new Held_PlotsSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static Held_PlotsSoap[] toSoapModels(List<Held_Plots> models) {
		List<Held_PlotsSoap> soapModels = new ArrayList<Held_PlotsSoap>(models.size());

		for (Held_Plots model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new Held_PlotsSoap[soapModels.size()]);
	}

	public Held_PlotsSoap() {
	}

	public String getPrimaryKey() {
		return _held_id;
	}

	public void setPrimaryKey(String pk) {
		setHeld_id(pk);
	}

	public String getHeld_id() {
		return _held_id;
	}

	public void setHeld_id(String held_id) {
		_held_id = held_id;
	}

	public String getUserId() {
		return _userId;
	}

	public void setUserId(String userId) {
		_userId = userId;
	}

	public String getApplicationId() {
		return _applicationId;
	}

	public void setApplicationId(String applicationId) {
		_applicationId = applicationId;
	}

	public String getLocation() {
		return _location;
	}

	public void setLocation(String location) {
		_location = location;
	}

	public String getArea() {
		return _area;
	}

	public void setArea(String area) {
		_area = area;
	}

	public String getDeveloped() {
		return _developed;
	}

	public void setDeveloped(String developed) {
		_developed = developed;
	}

	public String getAcquisitionMode() {
		return _acquisitionMode;
	}

	public void setAcquisitionMode(String acquisitionMode) {
		_acquisitionMode = acquisitionMode;
	}

	public String getRegParticulars() {
		return _regParticulars;
	}

	public void setRegParticulars(String regParticulars) {
		_regParticulars = regParticulars;
	}

	private String _held_id;
	private String _userId;
	private String _applicationId;
	private String _location;
	private String _area;
	private String _developed;
	private String _acquisitionMode;
	private String _regParticulars;
}